<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<c:import url="/pages/common-pages/head.jsp" /> 	
</head>
<body>	
	<c:import url="/pages/common-pages/header.jsp" /> 
	<br><br><br>
    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
           <h2>Edicao De Perfil</h2>
      
    </div>    

    <div class="container">
    <h2>Editar Meu Perfil</h2>
        <s:if test="%{mensagemDeFalha != null && mensagemDeFalha != ''}"> 
             <div class="alert alert-danger">
                   <s:label value="%{mensagemDeFalha}"></s:label>
              </div>
         </s:if>
         
        <s:if test="%{mensagemDeSucesso != null && mensagemDeSucesso != ''}"> 
             <div class="alert alert-danger">
                   <s:label value="%{mensagemDeSucesso}"></s:label>
              </div>
         </s:if>

		<!--TODO: Alterar a form para struts form OU botao de submit, dessa maneira nao esta indo as informacoes -->
		<s:form role="form" theme="simple" validate="true" method="POST" action="Usuario_editarPerfilUsuario_edicaoDePerfil" enctype="multipart/form-data">
		  	
		  	<div class="form-group">
			    <s:label for="usuario.nome" key="usuario.form.Nome"></s:label>
			    <s:textfield name="usuario.nome" cssClass="form-control" value="%{usuario.nome}"/>
		  	</div>
		  	<div class="form-group">
			    <s:label for="usuario.email" key="usuario.form.Email"></s:label>
			    <s:textfield name="usuario.email" id="inputDeEmail" cssClass="form-control"/>
		  	</div>
		  	<div class="form-group">
			    <s:label for="usuario.cidade" key="usuario.form.Cidade"></s:label>
			    <s:textfield name="usuario.cidade" id="inputDeCidade" cssClass="form-control"/>
		  	</div>
		  	<div class="form-group">
			    <s:label for="fotoDoUsuario" key="usuario.form.Foto"></s:label>
			    <s:file name="fotoDoUsuario" id="inputDeFoto" cssClass="form-control"/>
		  	</div>
		  	
		  	<!--TODO: colcar no padrao -->
		  	<s:submit cssClass="btn btn-success" value="Salvar" ></s:submit>
<%-- 		  <a class="btn btn-success" href="<s:url action='Usuario_cadastrarUsuario_formularioDeCadastroDeUsuarios'/>" role="button" onsubmit="return checarInputs();"> Cadastrar</a> --%>
		</s:form>


      <hr>

      <footer>
        <p>&copy; Copyright @ 2014 Unirio DSW. Carlos Magno e Victor Azevedo</p>
      </footer>
    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
    
</body>
</html>
</html>